package com.hckj.jianzhijia.popupwindows;

import android.content.Context;
import android.view.View;

import com.hckj.jianzhijia.utils.Data;

/**
 * Created by 赵奇隆 on 2015-10-28.
 */
public class PublishPopupWindowGender extends ListPopupWindow {

    private PublishPopWinGenderInterface publishPopWinGenderInterface;

    public PublishPopupWindowGender(Context context,PublishPopWinGenderInterface publishPopWinGenderInterface, View parentView, View anchorView) {
        super(context, parentView, anchorView, Data.genderTypeData);
        this.publishPopWinGenderInterface = publishPopWinGenderInterface;
    }



    public  interface PublishPopWinGenderInterface{
        public void setGenderType(int position,String itemName);
    }

    @Override
    public void getListItem(int position, String itemName) {
        publishPopWinGenderInterface.setGenderType(position,itemName);
    }
}
